package com.atguigu.lease.app.controller;

import com.atguigu.lease.app.service.LoginService;
import com.atguigu.lease.common.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LOGIN
 * @title LoginController
 * @create 2025/7/3 16:30
 * @description
 */
@RestController
@RequestMapping("/app")
public class LoginController {
    @Autowired
    private LoginService loginService;
    @Operation(summary = "")
    @GetMapping("/login/getCode")
    public Result getCode(@RequestParam String phone){
        loginService.getCode(phone);
            return Result.ok();

    }
}
